


	function formatSeconds(seconds) {
	        var info = [
                parseInt(seconds / 60 % 60),
                parseInt(seconds % 60)
    	         ]
                .join(":")
                .replace(/\b(\d)\b/g, "0$1");


       if (info.substr(0,1) == 0) {
        return info.substr(1,info.length-1);
       } ;
       return info;
	    }



  function numberChangeInfo(str) {
      var number = parseInt(str);
      if (number > 10000) {
        number = Math.floor(number/10000 * 100) / 100;
        return number+"万";
      }else {
        return str;
      }
    }

	function basePagListAction() {
			var tempArray = new Array();
   			tempArray.push({page:"«",isSelect:0});
          	for (var i = 1; i < 6; i++) {
          		if (true) {}
          			if (i == 1) {tempArray.push({page:i,isSelect:"page-active"});}else{
          				tempArray.push({page:i,isSelect:0});
          			}
          		}
    		tempArray.push({page:"»",isSelect:0});
    		return tempArray;
  }


	function pageChangeAction(info,currect_page,page_list,length,mixCount)  {

		var t_currect_page = currect_page;
        var t_page_list = page_list;
        var t_channel_length = length;
        var limitCount = 5;

        var isChange = 1;
  		if (info == t_currect_page) {isChange = 1;return;}
  		
  		if(info == "«") {
  			var objs = t_page_list[1];
      		var index = parseInt(objs.page);
        	if (index == 1) {isChange = 0; return;}
         	var tempArray = new Array();
      		tempArray.push({page:"«",isSelect:0});
          	for (var i = index - limitCount; i < index; i++) {
  				  if (i == index - limitCount) {
               			tempArray.push({page:i,isSelect:"page-active"});
            	 }else {
              		 	tempArray.push({page:i,isSelect:0});
             	 }
          	}
            tempArray.push({page:"»",isSelect:0});
            t_page_list = tempArray;

            t_currect_page = index-limitCount;
  			}else if(info == "»") {
          		if(t_channel_length < mixCount){
          			isChange = 0; return;
          		}else{
          	 		var objs = t_page_list[t_page_list.length-2];
          			var index = parseInt(objs.page) + 1;
          			var tempArray = new Array();
          			tempArray.push({page:"«",isSelect:0});
          			for (var i = index; i < index + limitCount; i++) {
            			if (i == index) {
               				tempArray.push({page:i,isSelect:"page-active"});
             			}else {
               				tempArray.push({page:i,isSelect:0});
             		}
         		}
          tempArray.push({page:"»",isSelect:0});
          t_page_list = tempArray;
          t_currect_page = index;
  		  }
  		} else {
            if(t_channel_length < mixCount){isChange = 0; return;};
            var tempArray = new Array();
            for (var i = 0; i < t_page_list.length; i++) {
                  var objs = t_page_list[i];
                  if (objs.page == info) {
                    objs.isSelect = "page-active"; 
                    t_currect_page = objs.page;
                    tempArray.push(objs);
                  }else {
                    objs.isSelect = 0; 
                    tempArray.push(objs);
                  }
                }
                t_page_list = tempArray;  
       
        }
        var info =new Object();
       	info.currect_page = t_currect_page;
       	info.page_list = t_page_list;
        return info;
	}



